package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DongtaihudongMapper;
import com.ruoyi.system.domain.Dongtaihudong;
import com.ruoyi.system.service.IDongtaihudongService;
import com.ruoyi.common.support.Convert;

/**
 * 动态互动管理 服务层实现
 * 
 * @author ruoyi
 * @date 2019-07-16
 */
@Service
public class DongtaihudongServiceImpl implements IDongtaihudongService 
{
	@Autowired
	private DongtaihudongMapper dongtaihudongMapper;

	/**
     * 查询动态互动管理信息
     * 
     * @param dongtaihudongId 动态互动管理ID
     * @return 动态互动管理信息
     */
    @Override
	public Dongtaihudong selectDongtaihudongById(Integer dongtaihudongId)
	{
	    return dongtaihudongMapper.selectDongtaihudongById(dongtaihudongId);
	}
	
	/**
     * 查询动态互动管理列表
     * 
     * @param dongtaihudong 动态互动管理信息
     * @return 动态互动管理集合
     */
	@Override
	public List<Dongtaihudong> selectDongtaihudongList(Dongtaihudong dongtaihudong)
	{
	    return dongtaihudongMapper.selectDongtaihudongList(dongtaihudong);
	}
	
    /**
     * 新增动态互动管理
     * 
     * @param dongtaihudong 动态互动管理信息
     * @return 结果
     */
	@Override
	public int insertDongtaihudong(Dongtaihudong dongtaihudong)
	{
	    return dongtaihudongMapper.insertDongtaihudong(dongtaihudong);
	}
	
	/**
     * 修改动态互动管理
     * 
     * @param dongtaihudong 动态互动管理信息
     * @return 结果
     */
	@Override
	public int updateDongtaihudong(Dongtaihudong dongtaihudong)
	{
	    return dongtaihudongMapper.updateDongtaihudong(dongtaihudong);
	}

	/**
     * 删除动态互动管理对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteDongtaihudongByIds(String ids)
	{
		return dongtaihudongMapper.deleteDongtaihudongByIds(Convert.toStrArray(ids));
	}
	
}
